package com.msun.dao;

import com.github.pagehelper.Page;
import com.msun.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    // 我自己写的方法(获取本月及以前的会员)
    Integer findMemberCountByMouth(String date);
    public List<Member> findAll();
    public Page<Member> selectByCondition(String queryString);
    public void add(Member member);
    public void deleteById(Integer id);
    public Member findById(Integer id);
    public Member findByTelephone(String telephone);
    public void edit(Member member);
    public Integer findMemberCountBeforeDate(String date);
    public Integer findMemberCountByDate(String date);
    public Integer findMemberCountAfterDate(String date);
    public Integer findMemberTotalCount();
    void editNameByMemberId(@Param("id") Integer memberId, @Param("name") String name);
    List<Map<String, Object>> findMemberAge();
    List<Map<String, Object>> findSetmealIncomeByDate(@Param("dBegin") String dBegin, @Param("dEnd") String dEnd);
    Member findMemberById(Integer id);
}
